package com.runfast.waimai.service;

import com.runfast.common.service.IService;
import com.runfast.common.dao.model.RunfastDeliverCost;
import com.runfast.waimai.dao.model.RunfastBusiness;
import com.runfast.waimai.dao.model.RunfastBusinessExample;
import com.runfast.waimai.web.dto.BusinessDto;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RunfastBusinessService extends IService<RunfastBusiness, Integer, RunfastBusinessExample> {
    List<Map<String, Object>> nearBy(Integer agentId, Integer range, Double longitude, Double latitude, Integer sorting, Integer activityType, Integer catalogId, Pageable pageable);

    Map<String, Object> detail(Integer businessId, Double userLng, Double userLat);

<<<<<<< .mine
    List<RunfastBusiness> findByAgentnameAndbusinessnameAndTime(Integer agentid, String name, Date createtime1, Date createtime2);
||||||| .r24
=======

    Map<String, Object> detail(RunfastDeliverCost defaultDeliveryTemplate, BusinessDto businessDto);

    List<Map<String, Object>> search(String name, Integer agentId, Double userLng, Double userLat, Pageable pageable);



    List<BusinessDto> getAgentZoneBusiness(Integer activityId, Double userLng, Double userLat, Pageable pageable);

    BusinessDto detailWithDistance(Integer businessId, Double toLng, Double toLat);
>>>>>>> .r34
}